package com.ophiux.config;

import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.TaskListener;

/**
 * @desc: 任务监听器（）
 * @author: hhl
 * @date：2024/1/11 12:27
 */
public class MyListener implements TaskListener {

    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.println("\n=======================================================");
        System.out.println("delegateTask.getName() = " + delegateTask.getName());
        // create,assignment,delete,all
        System.out.println("delegateTask.getEventName() = " + delegateTask.getEventName());
        // delegateTask.setAssignee("xxx");
        System.out.println("\n=======================================================");
    }
}

